import { Component, OnInit } from '@angular/core';
import { Router } from '@angular/router';

@Component({
  selector: 'app-user-profile',
  templateUrl: './user-profile.component.html',
  styleUrls: ['./user-profile.component.less']
})
export class UserProfileComponent implements OnInit {


  constructor(
    private router: Router
  ) { }

  ngOnInit() {
  }

  jumpCourse(id) {

    this.router.navigate(['/admin/user-profile/course', id, { username: '知一', age: 24 }], {
      queryParams: {
        a: 1,
        b: 2
      }
    })
  }

}
